package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.AccessoriesChannels;
import com.example.demo.repository.AccessoriesChannelsRepository;
@Service
public class AccessoriesChannelsService extends BaseService<AccessoriesChannels, Integer>{
	@Autowired
	private AccessoriesChannelsRepository AccDAO;

	/**
	 * @param name
	 * @return 通过配件渠道找配件
	 */
	public List<AccessoriesChannels> findByName(String name){
		return AccDAO.findByName(name);
	}
}
